package org.gd.hellojavacore.links;


public class SomeApp {

    public static void main(String ... args) {

        SomeBean bean1 = new SomeBean();
        SomeBean bean2 = new SomeBean();
        bean2.setBean(new SomeBean());
        bean1.setBean(bean2);

        SomeBean bean3 = SomeController.getSomeBean(bean1);

        System.out.println();
        System.out.println(bean1);
        System.out.println(bean2);
        System.out.println(bean3);
        System.out.println();
        bean3.setName("success");
        System.out.println();
        System.out.println(bean1);
        System.out.println(bean2);
        System.out.println(bean3);
        System.out.println();



    }
}
